<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>

<%@ include file="/static/include/link_css.jsp"%>
<body>
<div id="wrapper">
    <%@ include file="/static/include/header.jsp"%>
    <!--/. NAV TOP  -->
    <%@ include file="/static/include/sidebar.jsp"%>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper" >
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <c:if test="${empty type}">
                        <h1 class="page-header"><i class="fa fa-angle-right"></i>添加分类信息</h1>
                    </c:if>
                    <c:if test="${!empty type}">
                        <h1 class="page-header"><i class="fa fa-angle-right"></i>修改分类信息</h1>
                    </c:if>
                </div>
            </div>
            <!-- /. ROW  -->

            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form   action="/wx-shopping/typeModifyConserve"   method="post" >
                                <c:if test="${empty type}">
                                    <input type="hidden" name="method" value="add">
                                </c:if>
                                <c:if test="${!empty type}">
                                    <input type="hidden" name="method" value="update">
                                    <div class="form-group">
                                        <label>类别编号</label>
                                        <input class="form-control" readonly="true" placeholder="类别编号"  name="typeno" value="${type.typeno}">
                                    </div>
                                </c:if>
                                <div class="form-group">
                                    <label>类别名称</label>
                                    <input class="form-control" placeholder="类别名称"  name="typename" value="${type.typename}">
                                </div>
                                <button class="btn btn-primary" type="submit">保存</button>
                            </form>

                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
        </div>

    </div>
    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<%@ include file="/static/include/link_js.jsp"%>


</body>
</html>
